package ace.module.weixin.api.model.dto;

import java.io.Serializable;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/2/28 9:05 微信小程序 login
 */
@Data
@NoArgsConstructor
public class WxsJsCode2SessionResultDto extends WxsBaseResultDto implements Serializable {
  @Builder
  public WxsJsCode2SessionResultDto(
      Integer errCode, String errMsg, String openId, String unionId, String sessionKey) {
    super(errCode, errMsg);
    this.openId = openId;
    this.unionId = unionId;
    this.sessionKey = sessionKey;
  }

  /**
   * openid
   */
  private String openId;

  /**
   * unionId
   */
  private String unionId;

  private String sessionKey;
}
